<extend name="Public/base"/>
<block name="body">
	<link rel="stylesheet" href="/static/backend/css/report.css">
<div class="page-crumb">
	<div class="ui-ctrl ui-crumb"><span class="ui-crumb-node ui-crumb-node-first ui-crumb-node-last">应用管理</span></div>
</div>


	<div class="layui-main">
		<div class="list-action">
			<a class="ui-link skin-add-link" href="javascript:;" onclick="PopModel.openFrame('/Apply/create');" target="">新建应用</a>
		</div>
	</div>

	<div class="page-crumb">
		<div class="layui-form-item">
			<label class="layui-form-label">应用平台：</label>
			<div class="layui-input-inline">
				<select name="apply_classify" lay-filter="">
					<option value="">请选择...</option>
					<option value="1">IOS</option>
					<option value="2">Android</option>

				</select>
			</div>
			<label class="layui-form-label">接入方式：</label>
			<div class="layui-input-inline">
				<select name="apply_classify" lay-filter="">
					<option value="">请选择...</option>
					<option value="1">SDK</option>
					<option value="2">API</option>
				</select>
			</div>
			<label class="layui-form-label">应用类型：</label>
			<div class="layui-input-inline">
				<select name="apply_classify" lay-filter="">
					<option value="">请选择...</option>
					<foreach name="data" item="vo" key="k">
						<option value="{$vo.apply_classify}">{$vo.apply_classify}</option>
					</foreach>

				</select>
			</div>
			<label class="layui-form-label">应用状态：</label>
			<div class="layui-input-inline">
				<select name="apply_classify" lay-filter="">
					<option value="">请选择...</option>
					<option value="1">应用信息待审核</option>
					<option value="2">应用信息审核通过</option>
					<option value="3">应用信息审核不通过</option>
					<option value="4">SDK待审核</option>
					<option value="5">广告位待审核</option>
					<option value="6">生效中</option>
					<option value="7">SDK审核不通过</option>
					<option value="8">广告位审核不通过</option>

				</select>
			</div>
		</div>

		<!-- 数据列表 -->
		<table class="layui-table list-content-table" lay-skin="nob">
			<colgroup>
				<col width="20">
				<col width="150">
				<col width="150">
				<col width="100">
				<col width="100">
				<col width="100">
				<col width="100">
				<col width="100">
				<col width="100">
			</colgroup>
			<thead class="list-table-head">
			<tr>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text ui-table-hcell-text-first">
						<input type="checkbox" class="ui-table-select-all" data-index="">
					</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">应用名称</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">应用平台</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">接入方式</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">应用分类</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">状态</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">创建时间</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">收入(RMB)</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">操作</div>
				</th>

			</tr>
			</thead>

			<tbody class="list-table-body">
			<foreach name="data" item="value">
				<tr>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<input type="checkbox" class="ui-table-multi-select" data-id="{$value.id}">
						</div>
					</td>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							{$value.apply_name}
							<span class="table-content-addition">ID: {$value.id}</span>
						</div>
					</td>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<if condition="$value.apply_platform eq 1">
								<span class="table-status-activated">IOS</span>
								<elseif condition="$value.apply_platform eq 2"/>
								<span class="table-status-inactive">Android</span>
							</if>
						</div>
					</td>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<if condition="$value.access_mode eq 1">
								<span class="table-status-activated">SDK</span>
								<elseif condition="$value.access_mode eq 2"/>
								<span class="table-status-inactive">API</span>
							</if>
						</div>
					</td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$value.apply_classify}</div></td>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<if condition="$value.apply_status eq 1">
								<span class="table-status-activated">应用信息待审核</span>
								<elseif condition="$value.apply_status eq 2"/>
								<span class="table-status-inactive">应用信息审核通过</span>
								<elseif condition="$value.apply_status eq 3"/>
								<span class="table-status-inactive">应用信息审核不通过</span>
								<elseif condition="$value.apply_status eq 4"/>
								<span class="table-status-inactive">SDK待审核</span>
								<elseif condition="$value.apply_status eq 5"/>
								<span class="table-status-inactive">广告位待审核</span>
								<elseif condition="$value.apply_status eq 6"/>
								<span class="table-status-inactive">生效中</span>
								<elseif condition="$value.apply_status eq 7"/>
								<span class="table-status-inactive">SDK审核不通过</span>
								<elseif condition="$value.apply_status eq 8"/>
								<span class="table-status-inactive">广告位审核不通过</span>

							</if>
						</div>
					</td>

					<td class="ui-table-cell"><div class="ui-table-cell-text">{$value.found_time|date="Y-m-d",###}</div></td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$value.sum}</div></td>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<span class="table-operation" data-command="remove" data-command-args="{$value.id}">删除</span>
						</div>
					</td>

				</tr>
			</foreach>
			</tbody>

		</table>
		{$page}
		<script src="__BACKEND_STATIC__/js/apply/apply.js"></script>
	</div>
</block>